package com.yft.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController.java
 * @Description: 测试控制类
 * @author: lzt
 * @Date: 2024/07/12  20:49:49
 */
@RestController
@Slf4j
public class TestController {
    @GetMapping("/a")
    public void a101(){
        log.info("开始了,{}","李兆田");
    }

    @Scheduled(cron = "0/20 * * * * ?")
    public String a102(){
        log.info("定时任务执行中======================");
        return "ok";
    }
}
